//
//  LNHGoodsInfoAPI.m
//  LNH
//
//  Created by cruise on 2018/2/6.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "LNHGoodsInfoAPI.h"

NSString *kPropertyDataKeyGoodsDetailID = @"kPropertyListDataKeyID";
NSString *kPropertyDataKeyGoodsDetailName = @"kPropertyDataKeyGoodsDetailName";
NSString *kPropertyDataKeyGoodsDetailPrice = @"kPropertyDataKeyGoodsDetailPrice";
NSString *kPropertyDataKeyGoodsDetailPostage = @"kPropertyDataKeyGoodsDetailPostage";
NSString *kPropertyDataKeyGoodsDetailSales = @"kPropertyDataKeyGoodsDetailSales";
NSString *kPropertyDataKeyGoodsDetailLocation = @"kPropertyDataKeyGoodsDetailLocation";
NSString *kPropertyDataKeyGoodsDetailHtmlString = @"kPropertyDataKeyGoodsDetailHtmlString";
NSString *kPropertyDataKeyGoodsDetailVideoCoverUrl = @"kPropertyDataKeyGoodsDetailVideoCoverUrl";
NSString *kPropertyDataKeyGoodsDetailStock = @"kPropertyDataKeyGoodsDetailStock";
NSString *kPropertyDataKeyGoodsDetailGoodsUrl = @"kPropertyDataKeyGoodsDetailGoodsUrl";



@implementation LNHGoodsInfoAPI {
    NSString *_gid;
}

- (id)initWithGid:(NSString *)gid
{
    self = [super init];
    if (self) {
        _gid = gid;
    }
    return self;
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

- (YTKResponseSerializerType)responseSerializerType
{
    return YTKResponseSerializerTypeJSON;
}

- (BOOL)statusCodeValidator
{
    return YES;
}

- (NSString *)requestUrl {
    return @"goods/info";
}


- (id)requestArgument {
    return  @{ @"id":_gid };
}

@end
